from app.web.comm.check import Check
C=Check()

def get_client_id(tax_code):  # 获取商户id

    client_id = C.coonect_db(database="fpmerchant",
                             sql="select id from m_sell_client_new where tax_code='%s'" % tax_code)
    # print(self.tax_code)
    c_id = str(client_id[0][0])
    # print(type(c_id))
    return c_id